<?php
namespace app\api\controller\xykeep;
use app\common\controller\Api;
use app\api\model\xykeep\user\Level as LevelModel;

/**
 * 会员等级
 */
class Level extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /*
     * 列表
     */
    public function lists()
    {
        $params = $this->request->post();
        $lists = LevelModel::select();
        $this->success('会员等级',$lists);
    }

    /**
     * 详情
     */
    public function detail()
    {
        $data = LevelModel::where(['id'=>input('id/d')])->find();
        $this->success('等级',$data);
    }

}